export interface UserInDeptEntity {
	account: string
	name: string
	e164: string
	email: null | string
	ip: null | string
	moid: string
	portrait32: string
	mobile_phone: string
	work_phone?: string
	protocol: null | 0 | 1 | 2 | 255
	depts?: { department_name: string }[]
}
export interface TemplateEntity {
	name: string
	e164?: string
	conf_type?: 0 | 1 | 2
	preAssignedMeetingNumber?: string //todo 旧数据待移除，对应e164
	meetingType?: 0 | 1 | 2 //todo 旧数据待移除，对应conf_type
	smart_cascade_mode: 0 | 1 //智能级联
}
export interface SearchTemplateExactResponse {
	personal_templates: TemplateEntity[]
	total: number
	success: 0 | 1
}
export interface SearchTemplateResponse {
	list: TemplateEntity[]
	total: number
	success: 0 | 1
}
export interface DepartmentEntity {
	name: string
	id: string
	is_folder: boolean
	pid: string
	type: '1' | '2' //1：公共群组，2：组织架构
	children: DepartmentEntity[]
	users: UserInDeptEntity[]
}
export interface SearchDeptResponse {
	lists: DepartmentEntity[]
	user_size_data: {
		[key: string]: number
	}
}
export interface ExpandTreeParams {
	department_moid: string
	user_domain_moid: string
	public_group_moid: string
	is_all: boolean
}
